package com.example.demo.order.service.impl;

import java.math.BigDecimal;

import cn.hutool.core.util.NumberUtil;
import lombok.extern.slf4j.Slf4j;

/**
 * Created at 2021/3/1 1:44 下午
 *
 * @author Alex
 * description
 */
@Slf4j
public class Test {
    public static void main(String args[]) {
        Double price=887.23D;
        Long a= NumberUtil.round(price*0.006, 2).multiply(new BigDecimal(10000)).longValueExact();
        log.info(a.toString());
    }
}
